#include "mywidget.h"

MyWidget::MyWidget(QWidget *parent) : QWidget(parent) {}

void MyWidget::paintEvent(QPaintEvent *event)
{
    Q_UNUSED(event);
    QPainter painter(this);

    //绘制图片
    QPixmap pix(":/Icon/good.png");
    painter.drawPixmap(rect(), pix);
}
